const state = {
    activeId: 1,
    MenuObject: null,
    MenuObjectActiveType: null,
    RightMenuStatus: false,
    RightMenuOption: { X: 0, Y: 0 },
    content: null,
    tree: null,
};
const getters = {};
const mutations = {};
const actions = {
    setActiveId(context, activeId) {
        context.state.activeId = activeId;
    },
    setRightActive(context, obj) {
        context.state.MenuObject = obj.MenuObject;
        context.state.MenuObjectActiveType = obj.MenuObjectActiveType;
        context.state.RightMenuStatus = obj.RightMenuStatus;
        context.state.RightMenuOption = obj.RightMenuOption
    },
    setTree(context, tree) {
        context.state.tree = tree;
    },
    setContent(context, component) {
        context.state.content = component;
    },
};

export default {
    namespaced: true,
    state,
    getters,
    mutations,
    actions
}